package io.renren.modules.vipuser.service;

import io.renren.common.utils.R;
import io.renren.modules.vipuser.entity.VipinfoCustomEntity;
import io.renren.modules.vipuser.entity.VipinfosEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-24 20:20:23
 */
public interface VipinfosService {

	VipinfoCustomEntity queryObject(Integer vipinfoid);
	
	List<VipinfoCustomEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(VipinfoCustomEntity vipinfos);
	
	void update(VipinfoCustomEntity vipinfos);
	
	void delete(Integer vipinfoid);
	
	void deleteBatch(Integer[] vipinfoids);

	int isVipUserRepetition(String userinfoid);

	VipinfoCustomEntity queryVip(String userinfoid);

	void updateByUserInfoId(VipinfosEntity vipinfosEntity);

	void deleteBatchByUserInfoId(String[] userinfoids);


	R judgeIsDelError(int code);

	VipinfosEntity queryExpirationTime(String userinfoid);

}
